﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dora.Tools.Utility.Const.ApiSetting
{
    /// <summary>
    /// 钉钉相关配置
    /// </summary>
    public class DingTalkConstValue
    {
        /// <summary>
        /// 应用的唯一标识key
        /// by 崔
        /// </summary>
        public static string AppKey => "dinglw2ntomhmemcankt";

        /// <summary>
        /// 应用的密钥
        /// by 崔
        /// </summary>
        public static string Appsecret => "AUvnzZhROj6D__PgLb01yEi2_2DQXLkUKGwnyPxcHPnuXfMyscqRukETNZrCleBV";

        /// <summary>
        /// 钉钉API接口的Base地址
        /// by 崔
        /// </summary>
        public static readonly string DingBaseUrl = "https://oapi.dingtalk.com";

        /// <summary>
        /// 上传文件本地路径
        /// by 崔
        /// </summary>
        public static readonly string UploadPath = "Upload/Ding";

        /// <summary>
        /// 应用ID
        /// by 崔
        /// </summary>
        public static readonly string AgentId = "215358211";


        /// <summary>
        /// 移动端接入的AppId
        /// by 崔
        /// </summary>
        public static readonly string LoginAppId = "dingoaxwfq8ahocbm4zmvp";

        /// <summary>
        /// 移动端接入的AppSecret
        /// by 崔
        /// </summary>
        public static readonly string LoginAppSecret = "rW69JcHDHQYz8If4oxRIpKrm52wq5udgibi501tfMS9HbwjLOp_n3EIfol3FQ5p9";

        /// <summary>
        /// 钉钉回调地址
        /// by 崔
        /// </summary>
        public static string DingCallbackUrl => "http://b2354786x0.iok.la:52459/api/ding/dingcallback";

        /// <summary>
        /// 钉钉加解密密钥
        /// by 崔
        /// </summary>
        public static readonly string DingCallbackAesKey = "t6bidxwi58u2ln5ssosyh9wam109b77kl35h4gl8ppe";

        /// <summary>
        /// 钉钉加密解密签名
        /// by 崔
        /// </summary>
        public static readonly string DingCallbackToken = "dulatrip";
        /// <summary>
        ///  钉钉token，redis存活时间，单位：秒
        /// by 崔
        /// </summary>
        public static readonly short DingTokenExpireTime = 3600;


        /// <summary>
        /// 审批模板的ProcessCode
        /// by 崔
        /// </summary>
        public static List<string> ProcessCodeList = new List<string>()
        {
             "PROC-SIYJCRSV-X8B2UDVCXWCLFZPVNKWS1-EGRHN7RJ-91", // 供应商入驻审核模板
             "PROC-5FYJNIWV-D6B2814B4YDQR8ALIFUP3-B52VL7RJ-E1"  // 供应商资料审核模板
        };
    }
}
